package com.dao.sys;

import com.model.domain.sys.GetUserListDO;
import com.model.pojo.sys.SysUser;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Long sysUserId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long sysUserId,Byte isDelete);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectByLoginName(String loginName);

    SysUser select(String ip,String name,String mobile,String email,Byte isDelete);

    List<SysUser> selectUserList(GetUserListDO getUserListDO);

    int insertList(List<SysUser> sysUserList);

    int updateByPrimaryKeySelectiveList(List<SysUser> arrayList);

    int hasName(String name,Byte isDelete);

    int hasDeptId(Long sysDeptId,Byte isDelete);

    int hasEmail(String email,Byte isDelete);

    int hasMobile(String mobile,Byte isDelete);

    int has(Long sysUserId,Byte isDelete);

    int getCountByDept(Long sysDeptId);
}